﻿using System;
namespace Kis.Xroad.Eu {
    
    
    [System.SerializableAttribute()]
    public partial class SequenceArrayItemMin0 {
        
        private System.Collections.Generic.List<global::Kis.Xroad.Eu.WorkDay> @__nonNilMin1Max1 = new System.Collections.Generic.List<global::Kis.Xroad.Eu.WorkDay>();
        
        private System.Collections.Generic.List<SequenceArrayItemMin0.NilMin1Max1Type> @__nilMin1Max1 = new System.Collections.Generic.List<SequenceArrayItemMin0.NilMin1Max1Type>();
        
        private System.Collections.Generic.List<global::Kis.Xroad.Eu.Employee> @__nonNilMin0Max1 = new System.Collections.Generic.List<global::Kis.Xroad.Eu.Employee>();
        
        private System.Collections.Generic.List<System.Decimal?> @__nilMin0Max1 = new System.Collections.Generic.List<System.Decimal?>();
        
        public SequenceArrayItemMin0() {
        }
        
        /// <summary>
        /// All parameters
        /// </summary>
        public SequenceArrayItemMin0(System.Collections.Generic.List<global::Kis.Xroad.Eu.WorkDay> @nonNilMin1Max1, System.Collections.Generic.List<SequenceArrayItemMin0.NilMin1Max1Type> @nilMin1Max1, System.Collections.Generic.List<global::Kis.Xroad.Eu.Employee> @nonNilMin0Max1, System.Collections.Generic.List<System.Decimal?> @nilMin0Max1) {
            this.@__nonNilMin1Max1 = @nonNilMin1Max1;
            this.@__nilMin1Max1 = @nilMin1Max1;
            this.@__nonNilMin0Max1 = @nonNilMin0Max1;
            this.@__nilMin0Max1 = @nilMin0Max1;
        }
        
        /// <summary>
        /// Required parameters
        /// </summary>
        public SequenceArrayItemMin0(System.Collections.Generic.List<global::Kis.Xroad.Eu.WorkDay> @nonNilMin1Max1) {
            this.@__nonNilMin1Max1 = @nonNilMin1Max1;
        }
        
        /// <summary>
        /// Copy Constructor
        /// </summary>
        protected SequenceArrayItemMin0(SequenceArrayItemMin0 @sequenceArrayItemMin0) {
            this.@__nonNilMin1Max1 = @sequenceArrayItemMin0.NonNilMin1Max1;
            this.@__nilMin1Max1 = @sequenceArrayItemMin0.NilMin1Max1;
            this.@__nonNilMin0Max1 = @sequenceArrayItemMin0.NonNilMin0Max1;
            this.@__nilMin0Max1 = @sequenceArrayItemMin0.NilMin0Max1;
        }
        
        public virtual System.Collections.Generic.List<global::Kis.Xroad.Eu.WorkDay> NonNilMin1Max1 {
            get {
                return this.@__nonNilMin1Max1;
            }
            set {
                this.@__nonNilMin1Max1 = value;
            }
        }
        
        public virtual System.Collections.Generic.List<SequenceArrayItemMin0.NilMin1Max1Type> NilMin1Max1 {
            get {
                return this.@__nilMin1Max1;
            }
            set {
                this.@__nilMin1Max1 = value;
            }
        }
        
        public virtual System.Collections.Generic.List<global::Kis.Xroad.Eu.Employee> NonNilMin0Max1 {
            get {
                return this.@__nonNilMin0Max1;
            }
            set {
                this.@__nonNilMin0Max1 = value;
            }
        }
        
        public virtual System.Collections.Generic.List<System.Decimal?> NilMin0Max1 {
            get {
                return this.@__nilMin0Max1;
            }
            set {
                this.@__nilMin0Max1 = value;
            }
        }
        
        [System.SerializableAttribute()]
        public class NilMin1Max1Type : global::Xtee.Core.Schema.XsdString {
            
            public const string EXECUTIVE = "Executive";
            
            public const string PARKATTENDANT = "ParkAttendant";
            
            public const string PROGRAMMER = "Programmer";
            
            public const string PROJECTMANAGER = "ProjectManager";
            
            public NilMin1Max1Type(string value) : 
                    base(value) {
                this.Validate();
                string annot = null;
                if (Value == "Executive") {
                    annot = "Executive";
                }
                if (Value == "ParkAttendant") {
                    annot = "ParkAttendant";
                }
                if (Value == "Programmer") {
                    annot = "Programmer";
                }
                if (Value == "ProjectManager") {
                    annot = "ProjectManager";
                }
                if (annot!=null) {
                    this._annotation = annot;
                }
                else {
                    throw new global::Xtee.Core.Types.XteeSimpleTypeValidationException(string.Format("Enumeration on [{0}] does not allow value : [{1}] ", this.GetType().Name,Value.ToString()));;
                }
            }
            
            public NilMin1Max1Type() : 
                    base(string.Empty) {
            }
            
            public static bool TryParse(string value, out NilMin1Max1Type result) {
                try {
                    result = new NilMin1Max1Type(value);
                    return true;
                }
                catch (System.Exception ) {
                    result = null;
                    return false;
                }
            }
            
            public static implicit operator String (NilMin1Max1Type value) {
                return value.Value;
            }
            
            public static implicit operator NilMin1Max1Type (string value) {
                if (value==null) {
                    return null;
                }
                return new NilMin1Max1Type(value);
            }
        }
    }
}
